import { Context } from "egg";


export default function () {
  // console.log(options, app);
  return async function (ctx: Context, next: () => Promise<any>) {
    // ctx.response.header["X-Server-Time"] = new Date().getTime();
    ctx.response.set("X-Server-Time", (new Date().getTime()).toString());
    await next();
  };
}
